<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Search a restaurant</title>
<link href="/VancouverTongue/static/style.css" type="text/css"
	rel="stylesheet" />
<link rel="shortcut icon" href="/VancouverTongue/static/icon.png">
<style type="text/css">
#gallery img {
	width: 200px;
	height: 300px;
}

#gallery td {
	text-align: center;
	vertical-align: middle;
}

#recomand input {
	border: none;
	background-color: white;
}
</style>

</head>
<body>
	<jsp:include page="headTemplate.jsp" />
	<div>
		${ALERT} <label>Block a user: </label>
		<form method="get" action="/VancouverTongue/admin/block/temp">
			<dl>
				<dt>
					${USERID} <label>User ID: </label>
				</dt>
				<dd>
					<input type="text" name="userId" value="${UserId}" />
				</dd>
				<dt>
					${DAYS} <label>Block Days: </label>
				</dt>
				<dd>
					<input type="text" id="days" name="days" value="${Days}" />
				</dd>
				<dt>
					<label>Reasons: </label>
				</dt>
				<dd>
					<textarea name="message" rows="10" cols="40" maxlength="100"
						value="${Message}"></textarea>
				</dd>

			</dl>
			<input type="submit" value="Block" />
		</form>
	</div>
	
	
	<div>
		<label>Search a User: </label>
		<form method="get" action="/VancouverTongue/admin/block/searchprofile/temp">
			<dl>
				<dt>
					<label>User Name: </label>
				</dt>
				<dd>
					<input type="text" name="userId" value="${UserName}" />
				</dd>
			</dl>
			<input type="submit" value="Search" />
		</form>
	</div>
	<div>
	<p>User list:</p>
	<p>${SEARCHINFO}</p>
		<c:forEach var="acc" items="${arrList}">
		<div>
			<a href="/VancouverTongue/profile?userId=${acc.userId}">${acc.userId}</a>
		</div>
	</c:forEach>
	</div>


</body>
</html>